package com.shopping.bean;

import java.util.Date;

public class Cart {
    private int userid;
    private int productid;
    private int quantity;
    private Date addtime;
    private Product product;

    @Override
    public String toString() {
        return "Cart{" +
                "userid=" + userid +
                ", productid=" + productid +
                ", quantity=" + quantity +
                ", addtime=" + addtime +
                ", product=" + product +
                '}';
    }

    public Product getProduct() {
        return product;
    }

    public void setProduct(Product product) {
        this.product = product;
    }

    public int getUserid() {
        return userid;
    }

    public void setUserid(int userid) {
        this.userid = userid;
    }

    public int getProductid() {
        return productid;
    }

    public void setProductid(int productid) {
        this.productid = productid;
    }

    public int getQuantity() {
        return quantity;
    }

    public void setQuantity(int quantity) {
        this.quantity = quantity;
    }

    public Date getAddtime() {
        return addtime;
    }

    public void setAddtime(Date addtime) {
        this.addtime = addtime;
    }
}
